package com.jihu.design.behavioral.visitor;

/**
 * @author jihu
 * @date 2021/10/12
 */
public class Disk extends  HardWare {
    
    public Disk(String command){
        super(command);
    }

    @Override
    public void work() {
        System.out.println("Disk保存指令的历史记录:"+command);
    }

    @Override
    public void accept(Vistor vistor) {
        vistor.visitDisk(this);
    }
}
